﻿using WeDonekRpc.Helper.Validate;

namespace RpcStore.RemoteModel.Transmit.Model
{
    public class TransmitAdd
    {
        /// <summary>
        /// 方案ID
        /// </summary>
        [NumValidate("rpc.store.scheme.Id.error", 1)]
        public long SchemeId { get; set; }
        /// <summary>
        /// 服务节点Id
        /// </summary>
        [NumValidate("rpc.store.server.Id.error", 1)]
        public long ServerId
        {
            get;
            set;
        }
        /// <summary>
        /// 负载配置
        /// </summary>
        [NullValidate("rpc.store.transmit.config.null")]
        public TransmitConfig[] TransmitConfig
        {
            get;
            set;
        }
    }
}
